﻿using Entites;
using Microsoft.AspNetCore.Razor.TagHelpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CandyAdmin.Comon.Tags
{
    public class mtTagHelper:TagHelper
    {
        public Menu menu { get; set; }
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {

            output.TagName = "li";
            output.Content.SetHtmlContent($@"<a href='javascript:; '>
                         < i class='iconfont left-nav-li' lay-tips='{menu.Name}'>{menu.Icon.Info};</i>
                        <cite>{menu.Name}</cite>
                        <i class='iconfont nav_right'>&#xe600;</i>
                    </a>");

        }
    }
}
